package thread;

/**
 * java中所有代码都是靠线程运行的
 */
public class CurrentThreadDemo {
    public static void main(String[] args) {
       Thread main = Thread.currentThread();
        System.out.println("主线程："+main);
        doSome();
    }
    public static  void doSome(){
        Thread t =Thread.currentThread();
        System.out.println("运行doSome方法的是："+t);
    }
}
